#include <stdio.h>

#define NBint sizeof(int)

int main()
{
    union 
    {
        int a;
        unsigned char s[NBint];
    } u;
    while (scanf("%d", &u.a) == 1)
    {
        unsigned i;
        for (i = 0; i < NBint; i++)
        {
            printf("%02X", u.s[i]);
        }
        printf("\n");
    }
    return 0;
}

